package com.glory.wxelectricitypda.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.LockersTakenOffShelvesBean;

import java.util.List;

public class LockersTakenOffShelvesAdapter extends BaseQuickAdapter<LockersTakenOffShelvesBean.MATLISTDTO, BaseViewHolder> {

    public LockersTakenOffShelvesAdapter(List<LockersTakenOffShelvesBean.MATLISTDTO> data) {
        super(R.layout.adapter_lockerstakenoffshelves,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LockersTakenOffShelvesBean.MATLISTDTO item) {
        helper.setText(R.id.boxNum,String.valueOf(helper.getAdapterPosition()+1));
        helper.setText(R.id.mLotId,item.getMLOTID());
        helper.setText(R.id.mainQty,String.valueOf(item.getMAINQTY()));
    }
}
